const proxy = require('http-proxy-middleware');

module.exports = function (app) {
  app.use(proxy.createProxyMiddleware(process.env.REACT_APP_BASE_API, {    // 'qwl'  需要转发的请求
    target: process.env.REACT_APP_BASE_HOST,  //接口服务器地址
    changeOrigin: true,
    pathRewrite: {
		['^' + process.env.REACT_APP_BASE_API]: ''
	}
  }));
};